import Layout from '@/layout'

const router = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  name: 'Business',
  meta: {
    title: '角色管理',
    icon: 'el-icon-s-management'
  },
  children: [
    {
      path: 'account',
      component: () => import('@/views/account'),
      name: 'Account',
      meta: { title: '证管理', noCache: false, icon: 'el-icon-bank-card', sign: 'account' }
    },
    {
      path: 'host',
      component: () => import('@/views/host'),
      name: 'Host',
      meta: { title: '主机管理', noCache: false, icon: 'el-icon-s-platform', sign: 'host' }
    },
    {
      path: '',
      component: () => import('@/views/user'),
      name: 'User',
      meta: { title: '角色管理', noCache: false, icon: 'el-icon-user', sign: 'user' }
    },
    {
      path: 'script',
      component: () => import('@/views/script'),
      name: 'Script',
      meta: { title: '脚本管理', noCache: false, icon: 'el-icon-wallet', sign: 'user' }
    },
    {
      path: 'setting',
      component: () => import('@/views/setting'),
      name: 'Setting',
      meta: { title: '配置管理', noCache: false, icon: 'el-icon-setting', sign: 'user' }
    },
    {
      path: 'task',
      component: () => import('@/views/workflow'),
      name: 'Task',
      meta: { title: '工作管理', noCache: false, icon: 'el-icon-timer', sign: 'workflow' }
    }
  ]
}

export default router
